package cn.jltx.rxjava.rx;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import butterknife.ButterKnife;
import butterknife.OnClick;
import cn.jltx.rxjava.rx.learn.RxJava2Learn4;

/**
 * @author jltxseo
 *         Created by junlintianxia on 2017/08/11.
 */

public class Learn4Activity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_learn4);
        setTitle("笔记四");
        ButterKnife.bind(this);
    }

    @OnClick({R.id.btn1,R.id.btn2})
    public void onClick(View view){
        switch (view.getId()){
            case R.id.btn1:
                RxJava2Learn4.getNewsIndexRxJava2AndRetrofix();
                break;
            case R.id.btn2:
                RxJava2Learn4.getNewsIndexRxJava2AndRetrofixBean();
                break;
        }
    }
}
